package review.thread.singleton;

/**
 * @author haomin
 * @date 2022/11/04 21:01
 **/
public class LazyMode3 {
    private volatile static LazyMode3 instance = null;

    public static LazyMode3 getInstance() {
        if(instance == null){
            synchronized (LazyMode3.class){
                if(instance == null){
                    instance = new LazyMode3();
                }
            }
        }
        return instance;
    }

    private LazyMode3(){}
}